
export default {
    url: "/bpm/login/login",
    method: "POST",
    name: "登录",
    open: true,
    desc:"使用用户名和密码换取令牌，之后的请求里都要在请求头或者cookie中附加令牌",
    req: [
        {
            "en": "username",
            "cn": "用户名"
        },
        {
            "en": "password",
            "cn": "同步过来的密码",
            "type": "string"
        }
    ],
    resp:[
        {
            en: "user",
            cn: "用户信息",
            type:"object",
            children:[
                {
                    en: "id",
                    cn: "用户ID"
                },
                {
                    en: "username",
                    cn: "用户名"
                },
                {
                    en: "true_name",
                    cn: "用户真实姓名"
                },
            ]
        },
        {
            en: "token",
            cn: "令牌",
            type:"string"
        },
    ],
    respEg: {"success":true,"errMessage":"","data":{"user":{"id":"1","username":"admin","true_name":"系统管理员"},"token":"8cc4d989-8ac2-48ea-b3b0-efb0e8e3b7fb"}}
}